<style>
.memlogo-area{
	color: #fff;
}
.color{
	color: #fff;
}
.memlogo-area .memlogo img{
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 0 solid #fff;
}
.memlogo-area{
	width: 100%;
	background: {{main.syscolor ||'red'}};
	border-radius: 0;
	height:9.6rem;
	margin-bottom:0
}
.memlogo-area .sign-btn{
    position: absolute;
	border-radius:0.3rem;
    margin: 0 auto;
    padding: 0 0.3rem;
	right:16px;
    color:#fff;
	text-align:center;
    background: #fabbbb;
}
.jylabel {
    padding: 0.2rem 1rem;
    font-size: 0.65rem;
    border-radius: 1rem;
}
.jylabel-info {
	border: 1px solid #fff;color:#fff;
}
.item-up-content {background-color: #fff;border-radius: 10px;padding:0.5rem;margin:0.5rem}
.weui_cells {padding:0;margin-top:0}
.weui_cell_bd {padding:0;padding-bottom:0.3rem;padding-top:0.3rem;color:#999;font-size:0.7rem}
.weui_cell_hd {font-size:0.7rem;padding-bottom:0.3rem;padding-top:0.3rem;margin-right:0.3rem}
.item-ng {}
.item-ng .deleteitem {position: absolute;color:#000;margin-top:-1rem;right:0.5rem}
</style>
<div ng-if="pagedata.op=='get'" class='fui-page fui-page-current'>
	<div class='fui-content member-page'>
			<div style="">					
					<div class="memlogo-area">
						<div class="col-jy" style="margin-top:0.6rem">
							<div class="jy-2">
								<h5 href="javascript:;">今日销售（元）</h5>
								<h2 style="margin-top:0;">{{pagedata.data.dayfee || '0.00'}} </h2>
							</div>
							<div class="jy-2">
								<span class="r-f jylabel jylabel-info" href="javascript:;" ng-click="access_json('core/member.tixian/')" style="font-size:0.7rem;">提现</span>
							</div>
						</div>
						<div class="col-jy" style="margin-top:0.6rem">
							<div class="jy-2">
								<h5 href="javascript:;">stores累计销售（元）</h5>
								<h2 style="margin-top:0;">{{pagedata.data.allmoney || '0.00'}} </h2>
							</div>
							<div class="jy-2">
								<h5 href="javascript:;">stores绩效额（元）</h5>
								<h2 style="margin-top:0;">{{pagedata.data.commission_total || '0.00'}}</h2>
							</div>
						</div>
					</div>
			</div>
			<div class="fui-cell-group" style="margin-top:0">
				<a class="fui-cell external">
					<div class="fui-cell-label" style="width:auto">我的The balance（元）</div>
					<div class="fui-cell-text bold" style="font-size: 0.85rem;">{{pagedata.data.tixian || '0.00'}}</div>
					<div class="fui-cell-remark" href="javascript:;" ng-click="access_json('core/member.tixian/')">提现</div>
				</a>
				<a class="fui-cell external">
					<div class="fui-cell-label" style="width:auto">stores待结算（元）</div>
					<div class="fui-cell-text bold" style="font-size: 0.85rem;">{{pagedata.data.daifee || '0.00'}}</div>
					<div class="fui-cell-remark" href="javascript:;" ng-click="pagedata.gotixian(1)">结算</div>
				</a>
				<a class="fui-cell external">
					<div class="fui-cell-label" style="width:auto">A人待结算（元）</div>
					<div class="fui-cell-text bold" style="font-size: 0.85rem;">{{pagedata.data.mydaifee || '0.00'}}</div>
					<div class="fui-cell-remark" href="javascript:;" ng-click="pagedata.gotixian(0)">结算</div>
				</a>
			</div>
			<div class="fui-tab fui-tab-danger" id="tab" style="top:0.5rem">
				<a ng-class="{'external active':pagedata.params.type == '0'}" href="javascript:" ng-click="pagedata.params.type='0';tool.get_list('jy_weishop_en/store.manage.myfee/feelist/',true);">stores分佣</a>
				<a ng-class="{'external active':pagedata.params.type == '1'}" href="javascript:" ng-click="pagedata.params.type='1';tool.get_list('jy_weishop_en/store.manage.myfee/feelist/',true);">stores分红</a>
				<a ng-class="{'external active':pagedata.params.type == '2'}" href="javascript:" ng-click="pagedata.params.type='2';tool.get_list('jy_weishop_en/store.manage.myfee/feelist/',true);">店员推广</a>
				<a ng-class="{'external active':pagedata.params.type == '3'}" href="javascript:" ng-click="pagedata.params.type='3';tool.get_list('jy_weishop_en/store.manage.myfee/feelist/',true);">店员分红</a>
			</div>
			<div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0">
				<i class='fa fa-comment-o'></i><br/>Temporarily do not have any记录!
			</div>
			<div style="padding:0.5rem">
			<div class='fui-list-group container' ng-show="pagedata.list.length>0" >
				<div class="fui-list goods-item" ng-repeat="item in pagedata.list">
					<div class="fui-list-media">
						<img ng-if="item.member.avatar" ng-src="{{tomedia(item.member.avatar)}}" class="round" style="width:2rem;height:2rem">
						<i ng-if="!item.member.avatar" class="icon icon-my2"></i>
					</div>
					<div class="fui-list-inner">
						<div class='title'>
							<span class="label label-success">{{item.typetitle}}</span>
							<span class="red" style="margin-left:0.3rem">额度：{{item.money || item.fee}}</span>
							<span class="gray" style="font-size:0.6rem;"> 元</span>
						</div>
						<div class='gray'>{{item.createtime}}</div>
					</div>
					<div class='fui-list-angle'>
						<span class='fui-label fui-label-default gray' style="background:#f2f2f2;border-radius:0.2rem;">{{item.remark}}</span>
					</div>
				</div>
			</div>
			</div>
	</div>
</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<div ng-if="pagedata.showtixian" class="popup">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showtixian=false"></i>
			<div class='fui-content' >
				<div class='fui-cell-group fui-cell-group-o' style="margin:0">
					<div class='fui-cell-title'>提现金额
						<small ng-if="pagedata.pluginset.balance_money>0">提现额度最小为: <span class='text-danger'>${{pagedata.pluginset.balance_money || 1}}</span></small>
					</div>
					<div class='fui-cell'>
						<div class='fui-cell-label big' style='width:auto;'>$</div>
						<div class='fui-cell-info'>
						{{pagedata.data.tifee||'0.00'}}
						</div>
					</div>
					<div class="fui-cell">
						<div class="fui-cell-label" style="width: 120px;"><span class="re-g">提现方式</span></div>
						<div class="fui-cell-info">
							<select id="applytype" ng-model="pagedata.post.pay_type">
								<option ng-repeat="(k,title) in pagedata.pay_types" value="{{k}}" ng-selected="pagedata.post.pay_type==k">{{title}}</option>
							</select>
						</div>
						<div class="fui-cell-remark"></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='alipay' || pagedata.post.pay_type =='union'" class="fui-cell ab-group">
						<div class="fui-cell-label" style="width: 120px;">真实姓名</div>
						<div class="fui-cell-info"><input type="text" id="realname" name="realname" ng-model="pagedata.post.realname" class='fui-input' value="{{pagedata.post.realname}}" max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='alipay'" class="fui-cell alipay-group">
						<div class="fui-cell-label" style="width: 120px;">支付宝帐号</div>
						<div class="fui-cell-info">
						<input type="text" id="alipay" name="alipay" class='fui-input' ng-model="pagedata.post.alipay" value="{{pagedata.post.alipay}}" max="25"/>
						</div>
					</div>
					<div ng-if="pagedata.post.pay_type =='alipay'" class="fui-cell alipay-group">
							<div class="fui-cell-label" style="width: 120px;">确认帐号</div>
							<div class="fui-cell-info"><input type="text" id="alipay1" ng-model="pagedata.post.alipay1" name="alipay1" class='fui-input' value="{{pagedata.post.alipay1}}" max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='union'" class="fui-cell bank-group" >
							<div class="fui-cell-label" style="width: 120px;">所属银行</div>
							<div class="fui-cell-info">
								<input type="text" name="bankname" class='fui-input' ng-model="pagedata.post.bankname" value="{{pagedata.post.bankname}}"/>
							</div>
					</div>
					<div ng-if="pagedata.post.pay_type =='union'" class="fui-cell bank-group">
							<div class="fui-cell-label" style="width: 120px;">银行卡号</div>
							<div class="fui-cell-info"><input type="text" id="bankcard" name="bankcard" class='fui-input' ng-model="pagedata.post.bankcard" value="{{pagedata.post.bankcard}}" max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type =='union'" class="fui-cell bank-group">
							<div class="fui-cell-label" style="width: 120px;">确认卡号</div>
							<div class="fui-cell-info"><input type="text" id="bankcard1" name="bankcard1" class='fui-input' ng-model="pagedata.post.bankcard1" value="{{pagedata.post.bankcard1}}" max="25"/></div>
					</div>
					<div ng-if="pagedata.post.pay_type!='credit'" class='fui-cell-title disabled'>提现手续费为 <text class='text-danger'> {{pagedata.pluginset.balance_per || 0}}</text>%</div>
					<div ng-if="pagedata.post.pay_type!='credit'" class='fui-cell-title charge-group disabled' style="padding-top:0">本次提现将扣除手续费 $<text class='text-danger'> {{pagedata.data.service_money || '0.00'}}</text>
					</div>

					<div ng-if="pagedata.post.pay_type!='credit'" class='fui-cell-title charge-group disabled' style="padding-top:0">本次提现实际到账金额 $<text class='text-danger'> {{pagedata.data.cash_money || '0.00'}}</text>
					</div>
				</div>
				<a id='btn-next' class='btn btn-success block ' ng-click="post(pagedata.post,'/store.manage.myfee/balance/')">提现</a>
			</div>
		</div>
	</div>
</div>
<script>
scope.tool.get_list('jy_weishop_en/store.manage.myfee/feelist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_weishop_en/store.manage.myfee/feelist/');
}
scope.pagedata.gotixian=function(isstore){
	if(isstore==1 && scope.pagedata.isadmin!=1){
		scope.message('您不是该店店长，不能结算！','error');
		return false;
	}
	if(isstore==1){
		scope.pagedata.data.tifee=scope.pagedata.data.daifee;
	}else{
		scope.pagedata.data.tifee=scope.pagedata.data.mydaifee;
	}
	scope.pagedata.showtixian=true;
	scope.pagedata.post.feetype=0;
	scope.pagedata.post.isstore=isstore;
	scope.$evalAsync();
}
</script>